#!/usr/local/bin/python3
# -*- coding: utf-8 -*-

"""
@File    : ui_app_variable.py
@Author  : Link
@Time    : 2022/12/23 21:06
@Mark    : 控制信号
"""

from environs import Env

env = Env()
env.read_env()


class QtFunc:
    Connect = "connect"
    Emit = "emit"


class UiGlobalVariable:
    GraphUseLocalColor = False
    GraphPlotBin: bool = env.bool("GraphPlotBin", default=True)
    GraphBins: int = env.int("GraphBins", default=60)
    GraphScreen: int = env.int("GraphScreen", default=0)
    GraphMeanAddSubSigma: float = env.float("GraphMeanAddSubSigma", default=3)
    GraphPlotColumn: int = env.int("GraphPlotColumn", default=1)
    GraphPlotScatterSimple: bool = env.bool("GraphPlotScatterSimple", default=False)
    GraphPlotScatterSimpleNum: int = env.int("GraphPlotScatterSimpleNum", default=10000)
    GraphPlotFloatRound: int = env.int("GraphPlotFloatRound", default=9)
    GraphPlotWidth: int = env.int("GraphPlotWidth", default=1000)
    GraphPlotHeight: int = env.int("GraphPlotHeight", default=600)
    GraphCpkLoClamp: float = env.float("GraphCpkLoClamp", default=0)
    GraphCpkHiClamp: float = env.float("GraphCpkHiClamp", default=1)
    GraphTopFailClamp: int = env.int("GraphTopFailClamp", default=0)
    GraphRejectClamp: int = env.int("GraphRejectClamp", default=0)
    PandasScreen: bool = env.bool("PandasScreen", default=False)
    PandasLogDefaultRow: int = env.int("PandasLogDefaultRow", default=5)  # 默认显示Log的行数
    DtrGraphPlotWidth: int = env.int("DtrGraphPlotWidth", default=650)
    DtrGraphPlotHeight: int = env.int("DtrGraphPlotHeight", default=380)
